package com.ruoyi.business.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 支付通道对象 t_pay_channel
 * 
 * @author ruoyi
 * @date 2024-02-26
 */
@Data
public class TPayChannel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 通道类型 */
    @Excel(name = "通道类型")
    private String type;

    /** 通道编码 */
    @Excel(name = "通道编码")
    private String channel;

    /** 通道描述 */
    @Excel(name = "通道描述")
    private String channelDesc;

    /** 是否需要在线 */
    @Excel(name = "是否需要在线")
    private Integer needOnLine;

    /** 是否需要生成二维码。默认1需要 */
    @Excel(name = "是否需要生成二维码。默认1需要")
    private Integer needGenQrcode;

    /** 商户费率。单位万分之x。默认100即1% */
    @Excel(name = "商户费率。单位万分之x。默认100即1%")
    private Integer userRate;

    /** 是否禁用该通道，默认否 */
    @Excel(name = "是否禁用该通道，默认否")
    private Integer disabled;

    /** 金额是否浮动100分。默认否 */
    @Excel(name = "金额是否浮动100分。默认否")
    private Integer fd100;

    /** 单笔最小限额。默认0不限制 */
    @Excel(name = "单笔最小限额。默认0不限制")
    private Long limitPerMinMoney;

    /** 单笔最大限额。默认0不限制 */
    @Excel(name = "单笔最大限额。默认0不限制")
    private Long limitPerMaxMoney;

    /** 收款账号登录类型 */
    @Excel(name = "收款账号登录类型")
    private String loginType;

    /** 是否地区分控 */
    @Excel(name = "是否地区分控")
    private Integer isArea;

    /**  */
    @Excel(name = "")
    private Integer needGoogle;

    /**  */
    @Excel(name = "")
    private Long createUser;

    /**  */
    @Excel(name = "")
    private Long updateUser;

    /**  */
    @Excel(name = "")
    private String paramInfo;

    private String aliasName;

    private Long userId;

    private Integer reqType;

    /** 是否固定金额（0：否） */
    @Excel(name = "是否固定金额", readConverterExp = "0=：否")
    private Integer isRegularAmount;

    private Integer limitErrorCount;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("channel", getChannel())
            .append("channelDesc", getChannelDesc())
            .append("needOnLine", getNeedOnLine())
            .append("needGenQrcode", getNeedGenQrcode())
            .append("userRate", getUserRate())
            .append("disabled", getDisabled())
            .append("fd100", getFd100())
            .append("limitPerMinMoney", getLimitPerMinMoney())
            .append("limitPerMaxMoney", getLimitPerMaxMoney())
            .append("loginType", getLoginType())
            .append("isArea", getIsArea())
            .append("needGoogle", getNeedGoogle())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createUser", getCreateUser())
            .append("updateUser", getUpdateUser())
            .append("paramInfo", getParamInfo())
            .append("isRegularAmount", getIsRegularAmount())
            .toString();
    }
}
